﻿using CefSharp;
using CefSharp.WinForms;
using FictionsDownload.Events;
using FictionsDownload.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FictionsDownload.BLL.CefSharp
{
    public interface ICefSharp
    {
        #region 属性
        ChromiumWebBrowser WebBrowser { get; }
        bool IsBrowserInitialized { get; set; }
        string CurrentWebUrl { get; set; }
        string Html { get; set; }
        #endregion
        #region 事件
        event AddMessageEventHandler AddMessage;
        event EventHandler UserNameChanged;
        #endregion
        #region 方法
        Task<bool> LoginNameAsync();
        Task<bool> LoginAccount();
        Task<string> LoadUrlAsync(string url);
        #endregion
    }
}
